import time
from page import Page
import pytest
from Tool import qudong
from selenium.webdriver.common.by import By
from selenium import webdriver

datas=qudong(r'D:\Gao5\pythonProject\zuoye\zy93_po_pl\data.yaml')
@pytest.fixture
def driver():
    driver=webdriver.Edge()
    driver.maximize_window()
    driver.get('https://126.com/')
    time.sleep(3)
    yield driver
    driver.quit()
@pytest.mark.parametrize('data',datas)
def test_126_01(driver,data):
    po=Page(driver)
    po.test_126_login(data.get('username'),data.get('password'))
